home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: 16-bit memset?
- Date: 19 Mar 1996 09:49:57 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4ims45INNr0i@keats.ugrad.cs.ubc.ca>
- References: <joules-1803962243060001@badboy.mit.edu> <4ill6r$qnm@nntp.interaccess.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4ill6r$qnm@nntp.interaccess.com>,
- Brian V. McGroarty <brianmcg@interaccess.com> wrote:
- >What system and what compiler are you using? Many C libraries will fill
- >out unaligned starts and ends and then use the largest machine word to fill
- >the middle section of a memset.
-
- But it will store bytes to the middle section. You couldn't store a pattern
- like:
-
- FF 00 FF 00 FF 00 FF 00 ...
-
- for instance.
-
- This is what I understand by storing a single value to an array of 16-bit
- types.
- --
-
-